public class Text {
    public static void main(String[] args) {

    }

    public static void main2(String[] args) {
        String s="abcdefgh";
        System.out.println(s.charAt(2));
        System.out.println(s.indexOf('a'));

    }
    public static void main1(String[] args) {
        String s1 = new String("he");
        String s2 = new String("he");
        System.out.println(s1 == s2);
        String s3 = "hi";
        String s4 = "hi";
        System.out.println(s3== s4);
        System.out.println(s1.equals(s2));
        String a1="10";
        String a2="8";
        System.out.println(a1.compareTo(a2));
    }
}
